#ifndef _SHA_H
#define _SHA_H

/*$Id: sha.h 5 2012-10-26 04:17:18Z hymm91@gmail.com $*/

typedef struct {
  unsigned long H[5];
  unsigned long W[80];
  int lenW;
  unsigned long sizeHi,sizeLo;
} j_SHA_CTX;


#ifdef __cplusplus
extern "C" {
#endif

void shaInit(j_SHA_CTX *ctx);
void shaUpdate(j_SHA_CTX *ctx, unsigned char *dataIn, int len);
void shaFinal(j_SHA_CTX *ctx, unsigned char hashout[20]);
void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]);

#ifdef __cplusplus
}
#endif

#endif

/*$Id: sha.h 5 2012-10-26 04:17:18Z hymm91@gmail.com $*/
